/*
$(document).on("click", "a", function(){
    $.mobile.loading('show', {
        text: "正在加载页面，请稍候...",
        textVisible: true,
        theme: "a",
        textonly: false,
        html: ""
    });
});
$(document).unload(function(){
 	$.mobile.loading('hide');
});
*/
$(window).on("load",initPopupDialog);
function initPopupDialog(){
    var dlg = '<div data-role="popup" id="popDiv"  data-overlay-theme="a" data-theme="c"  class="ui-content" style="width:230px;">' +
    ' <input type="button" onclick="$(\'#popDiv\').popup(\'close\');" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right"/>' +
    ' <div data-role="content">' +
    '<h4><p id="popupMessage"></p><h4>' +
    '<input type="button" data-role="button" data-theme="b" onclick="$(\'#popDiv\').popup(\'close\');" value="关&nbsp;&nbsp;闭"/></div></div>'
    
    var dialog = $(dlg);
    $.mobile.activePage.append(dialog);
    dialog.trigger("create");
    dialog.popup();
}

function showPopupDialog(msg){
    $("#popupMessage").text(msg);
    $("#popDiv").popup("open");
}
